import 'package:chop/widgets/appBar.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import 'Set_phone_number.dart';

class Setting_center extends StatefulWidget {
  @override
  _Setting_centerState createState() => _Setting_centerState();
}

class _Setting_centerState extends State<Setting_center> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: BaseViewBar(
        childView: BaseTitleBar("设置中心"),
        preferredSize: Size.fromHeight(60.0),
      ),
      body: Container(
        margin:EdgeInsets.fromLTRB(20, 10, 0, 0) ,
        width: double.infinity,
        height: double.infinity,
        color: Colors.white,
        child: Column(
          children: <Widget>[
            GestureDetector(
              child:  Container(
                width: double.infinity,
                height: ScreenUtil().setHeight(120),
//                          color: Colors.blue,
                child: Row(
                  children: <Widget>[
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 15, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.contacts,color: Colors.blue,size: 40,),
                        ],
                      ),
                    ),
                    Container(//文字
                      margin:EdgeInsets.fromLTRB(20, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Text("修改手机号",
                            style: TextStyle(
                                fontSize: ScreenUtil().setSp(35)
                            ),
                          ),
                        ],
                      ),
                    ),
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 10, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
                      alignment: Alignment.topRight,
                      width: ScreenUtil().setWidth(315),
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.arrow_forward,color: Colors.blue,size: 25,),
                        ],
                      ),
                    ),
                  ],
                ),
              ),
              onTap: (){
              Get.to(Set_phone_number());

              },
            ),
            GestureDetector(
              child:  Container(
                width: double.infinity,
                height: ScreenUtil().setHeight(120),
//                          color: Colors.blue,
                child: Row(
                  children: <Widget>[
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 15, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.verified_user,color: Colors.blue,size: 40,),
                        ],
                      ),
                    ),
                    Container(//文字
                      margin:EdgeInsets.fromLTRB(20, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Text("修改密码",
                            style: TextStyle(
                                fontSize: ScreenUtil().setSp(35)
                            ),
                          ),
                        ],
                      ),
                    ),
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 10, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
                      alignment: Alignment.topRight,
                      width: ScreenUtil().setWidth(350),
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.arrow_forward,color: Colors.blue,size: 25,),
                        ],
                      ),
                    ),
                  ],
                ),
              ),
              onTap: (){


              },
            ),
            GestureDetector(
              child:  Container(
                width: double.infinity,
                height: ScreenUtil().setHeight(120),
//                          color: Colors.blue,
                child: Row(
                  children: <Widget>[
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 15, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.image,color: Colors.blue,size: 40,),
                        ],
                      ),
                    ),
                    Container(//文字
                      margin:EdgeInsets.fromLTRB(20, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Text("修改头像昵称",
                            style: TextStyle(
                                fontSize: ScreenUtil().setSp(35)
                            ),
                          ),
                        ],
                      ),
                    ),
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 10, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
                      alignment: Alignment.topRight,
                      width: ScreenUtil().setWidth(280),
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.arrow_forward,color: Colors.blue,size: 25,),
                        ],
                      ),
                    ),
                  ],
                ),
              ),
              onTap: (){


              },
            ),
            GestureDetector(
              child:  Container(
                width: double.infinity,
                height: ScreenUtil().setHeight(120),
//                          color: Colors.blue,
                child: Row(
                  children: <Widget>[
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 15, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.security,color: Colors.blue,size: 40,),
                        ],
                      ),
                    ),
                    Container(//文字
                      margin:EdgeInsets.fromLTRB(20, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Text("安全中心",
                            style: TextStyle(
                                fontSize: ScreenUtil().setSp(35)
                            ),
                          ),
                        ],
                      ),
                    ),
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 10, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
                      alignment: Alignment.topRight,
                      width: ScreenUtil().setWidth(350),
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.arrow_forward,color: Colors.blue,size: 25,),
                        ],
                      ),
                    ),
                  ],
                ),
              ),
              onTap: (){


              },
            ),
            GestureDetector(
              child:  Container(
                width: double.infinity,
                height: ScreenUtil().setHeight(120),
//                          color: Colors.blue,
                child: Row(
                  children: <Widget>[
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 15, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.lightbulb_outline,color: Colors.blue,size: 40,),
                        ],
                      ),
                    ),
                    Container(//文字
                      margin:EdgeInsets.fromLTRB(20, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Text("常见问题",
                            style: TextStyle(
                                fontSize: ScreenUtil().setSp(35)
                            ),
                          ),
                        ],
                      ),
                    ),
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 10, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
                      alignment: Alignment.topRight,
                      width: ScreenUtil().setWidth(350),
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.arrow_forward,color: Colors.blue,size: 25,),
                        ],
                      ),
                    ),
                  ],
                ),
              ),
              onTap: (){


              },
            ),
            GestureDetector(
              child:  Container(
                width: double.infinity,
                height: ScreenUtil().setHeight(120),
//                          color: Colors.blue,
                child: Row(
                  children: <Widget>[
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 15, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.edit,color: Colors.blue,size: 40,),
                        ],
                      ),
                    ),
                    Container(//文字
                      margin:EdgeInsets.fromLTRB(20, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Text("反馈建议",
                            style: TextStyle(
                                fontSize: ScreenUtil().setSp(35)
                            ),
                          ),
                        ],
                      ),
                    ),
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 10, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
                      alignment: Alignment.topRight,
                      width: ScreenUtil().setWidth(350),
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.arrow_forward,color: Colors.blue,size: 25,),
                        ],
                      ),
                    ),
                  ],
                ),
              ),
              onTap: (){


              },
            ),
            GestureDetector(
              child:  Container(
                width: double.infinity,
                height: ScreenUtil().setHeight(120),
//                          color: Colors.blue,
                child: Row(
                  children: <Widget>[
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 15, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.work,color: Colors.blue,size: 40,),
                        ],
                      ),
                    ),
                    Container(//文字
                      margin:EdgeInsets.fromLTRB(20, 10, 0, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Text("法律条款和隐私政策",
                            style: TextStyle(
                                fontSize: ScreenUtil().setSp(35)
                            ),
                          ),
                        ],
                      ),
                    ),
                    Container(//图标
                      margin:EdgeInsets.fromLTRB(0, 10, 10, 0) ,
                      padding: EdgeInsets.fromLTRB(0, 20, 0, 0) ,
                      alignment: Alignment.topRight,
                      width: ScreenUtil().setWidth(170),
//                      color: Colors.black12,
                      child: Column(
                        children: <Widget>[
                          Icon(Icons.arrow_forward,color: Colors.blue,size: 25,),
                        ],
                      ),
                    ),
                  ],
                ),
              ),
              onTap: (){


              },
            ),








          ],
        ),
      ),
    );
  }
}
